home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 October / CHIP Turkiye Ekim 2000.iso / prog / naps / 04 / setup.exe / Gnucleus / InPlaceEdit.h < prev    next >
C/C++ Source or Header  |  2000-07-06  |  2KB  |  71 lines

  1. /********************************************************************************
  2.  
  3.     Gnucleus - A node application for the Gnutella network
  4.     Copyright (C) 2000 John Marshall
  5.  
  6.     This program is free software; you can redistribute it and/or modify
  7.     it under the terms of the GNU General Public License as published by
  8.     the Free Software Foundation; either version 2 of the License.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18.  
  19.     For support, questions, comments, etc...
  20.     E-Mail: 
  21.         swabby@c0re.net
  22.     
  23.     Address:
  24.         21 Cadogan Way
  25.         Nashua, NH, USA 03062
  26.  
  27. ********************************************************************************/
  28.  
  29. /////////////////////////////////////////////////////////////////////////////
  30. // CInPlaceEdit window
  31.  
  32. class CInPlaceEdit : public CEdit
  33. {
  34. // Construction
  35. public:
  36.     CInPlaceEdit(int iItem, int iSubItem, CString sInitText);
  37.  
  38. // Attributes
  39. public:
  40.  
  41. // Operations
  42. public:
  43.  
  44. // Overrides
  45.     // ClassWizard generated virtual function overrides
  46.     //{{AFX_VIRTUAL(CInPlaceEdit)
  47.     public:
  48.     virtual BOOL PreTranslateMessage(MSG* pMsg);
  49.     //}}AFX_VIRTUAL
  50.  
  51. // Implementation
  52. public:
  53.     virtual ~CInPlaceEdit();
  54.  
  55.     // Generated message map functions
  56. protected:
  57.     //{{AFX_MSG(CInPlaceEdit)
  58.     afx_msg void OnKillFocus(CWnd* pNewWnd);
  59.     afx_msg void OnNcDestroy();
  60.     afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
  61.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  62.     //}}AFX_MSG
  63.  
  64.     DECLARE_MESSAGE_MAP()
  65. private:
  66.     int m_iItem;
  67.     int m_iSubItem;
  68.     CString m_sInitText;
  69.     BOOL    m_bESC;         // To indicate whether ESC key was pressed
  70. };
  71.